#include<iostream>
using std::cout;
using std::cin;
using std::endl;
#include"tcp_server.h"

void Usage(char* s)
{
  cout<<"Usage"<<"\n\t"<<s<<" port"<<endl;
}
int main(int argv,char* argc[])
{
  if(argv!=2)
  {
    Usage(argc[0]);
    exit(1);
  }
  TcpServer t(atoi(argc[1]));
  t.InitServer();
  t.Loop();
  return 0;
}
